package com.sca.commontest.test.designpattern.decorator.hamburger;


/**
 * @Author: denglei
 * @Date: 2022/1/6 09:41
 * @Description:
 */
public class Chilli extends Condiment {
    Hamburger hamburger;

    public Chilli(Hamburger hamburger) {
        this.hamburger = hamburger;
    }

    @Override
    public String getName() {
        return hamburger.getName()+",加辣椒价格不变";
    }

    @Override
    public double getPrice() {
        return hamburger.getPrice();
    }
}
